<?php if ($this->activeLogin) :?>
<script type="text/javascript">
	window.location.assign("<?php echo WEB_LINK.'/index.php?m=home&a=index'.constants::$pathUrl;?>");
</script>
<?php endif;?>
<?php if (!$this->loginFlag) :?>
<form name="form1" method="post" action="index.php?m=user&a=login<?php echo constants::$pathUrl;?>" enctype="multipart/form-data">
<input type="hidden" name="item" value="" />
<input type="hidden" name="mode" value="" />
<input type="hidden" name="type" value="" />
<div id="allconfirm" style="background-color:#000;">
	<div id="popup-diet" class="ui-popup-diet ui-body-e ui-corner-all" style="top: 216px;width:308px;">
		<table border="0" cellspacing="0" cellpadding="0">
		  <?php if (count ($this->errorArr) > 0) :?>
		  <tr>
		  	<td colspan="2" align="left"><?php echo FunctionCommon::showAllErrorMessage($this->errorArr);?></td>
		  </tr>
		  <?php endif;?>
		  <tr>
		    <td align="center" valign="middle"><img src="images/default/j_login_lock.png" width="100"></td>
		    <td align="center" valign="middle" width="100%">
		    	<table cellpadding="5" cellspacing="3" border="0" align="center" class="form-input">
					  <tr>
					    <td align="left"><label style="color:#00F; font-weight:bold;">Username :</label><br /><input type="text" size="27" name="nickname" id="nickname" /></td>
				      </tr>
					  <tr>
					    <td align="left"><label style="color:#00F; font-weight:bold;">Password :</label><br /><input type="password" size="27" name="password" id="password" /></td>
				      </tr>
				      <?php if ($this->countLogin >= 3) :?>
					  <tr>
						  <td align="left">
						  	  <img height="22" style="display:block;" src="<?php echo WEB_LINK . "/captcha.php";?>">
						      <input type="text" id="captcha" size="8" name="captcha" value="">
				       	  </td>
					  </tr>
					  <?php endif;?>
				</table>
			</td>
		  </tr>
		  <tr>
		  	<td colspan="2" align="center">
		  		<table cellpadding="5" cellspacing="3" border="0" align="center" class="form-input">
		  			<tr>
					    <td align="center"><input type="submit" name="Sub" id="button" value="Login" class="button-submit" /></td>
				    </tr>
				    <tr>
				    	<td align="center"><a href="#">Forgot your password?</a></td>
				    </tr>
		  		</table>
		  	</td>
		  </tr>
		</table>
	</div>
</div>
</form>
<?php endif;?>